/*
  Tên:Nguyễn Văn Huy
  MSSV:11374891
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef QUANLYBANSACH_H
#define QUANLYBANSACH_H

#include <QtGui/QMainWindow>
#include "mysqlconnection.h"
#include "tasksmodel.h"
namespace Ui {
class QuanLyBanSach;
}

class QuanLyBanSach : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit QuanLyBanSach(QWidget *parent = 0);
    ~QuanLyBanSach();
    void LoaTree();
    void layThongTinKH(int maKH);
    void timkhachhang();

private slots:
    void ThemSach();
    void ThemTheLoai();
    void ThemTacGia();
    void ThemKhachHang();
    void ThemQuyDinh();
    void InHoaDon();
    void ThongTinPM();
    void CapNhatPM();
    void ThoatPM();
    void DangXuat();
    void onActionexitTriggered();
    void Themvaogiohang();
    void CapNhapTongTien();
    void XemHoaDon();
    void timsach();
    void Baocaocongno();
    void clicktree();
    void Thanhtoan();
    void lammoigiohang();
    void on_treeSach_clicked(const QModelIndex &index);
    void chonKhachHang();
    void txtChangeMaKH();
    void clearTTKhachHang();
    void goibangkh();
    void danhsachsach();
    //void on_txttenkhachhangtimkiem_textChanged(const QString &arg1);

private:
    Ui::QuanLyBanSach *ui;
    MySqlConnection *DB;
    TasksModel *_model;
    static int sn;
    static float totalPayable;

signals:
    void signalLCDNumber();

};

#endif // QUANLYBANSACH_H
